import { Dialect } from 'sequelize/types';

export const config = {
  database: {
    dialect: 'mysql' as Dialect,
    host: process.env.DEV_DB_HOST,
    port: +process.env.DEV_DB_PORT,
    username: process.env.DEV_DB_USERNAME,
    password: process.env.DEV_DB_KEY,
    database: process.env.DEV_DB_NAME,
    logging: false,
    synchronize: false, // 在自己的数据库开发时可以设置为 true
    autoLoadModels: true,
    define: {
      timestamps: true,
      underscored: false,
    },
  },
  jwtPrivateKey: 'jwtPrivateKey',
};
